/*
 * @Author: Mcc
 * @Date: 2024-07-10 10:05:02
 * @LastEditors: mcc 550539422@qq.com
 * @LastEditTime: 2024-08-23 12:20:39
 * @FilePath: \ft-apply\src\main.ts
 * @Description:
 *
 * Copyright (c) 2024 by Mcc, All Rights Reserved.
 */
import { createApp } from "vue";
import "./style.css";
import App from "./App.vue";
import router from "./router";
import { createPinia } from "pinia";
import { Icon } from "vant";
import { Lazyload } from "vant";
import "vant/lib/index.css";
import "./assets/css/nprogress.css";
const app = createApp(App);
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import zhCn from "element-plus/es/locale/lang/zh-cn";

// iconfont
import "./assets/ui/fonts/iconfont.css";

import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);

app
  .use(router)
  .use(pinia)
  .use(Icon)
  .use(Lazyload, {
    lazyComponent: true,
  })
  .use(ElementPlus, {
    locale: zhCn,
  })
  .mount("#app");
